home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Technical Docs / Apple II Technical Notes / Technical Notes (Text) / IIGS / TN.IIGS.057 < prev    next >
Encoding:
Text File  |  1989-08-20  |  1.2 KB  |  28 lines  |  [TEXT/pdos]

  1. Apple II
  2. Technical Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6.  
  7. Apple IIGS
  8. #57:    Preventing Memory Compacting and Purging
  9.  
  10. Written by:    Dave Lyons                                           July 1989
  11.  
  12. This Technical Note discusses a flag byte at location $E100CB that debugging 
  13. utilities can use to temporarily prevent the Memory Manager from moving or 
  14. purging memory.
  15. _____________________________________________________________________________
  16.  
  17. If the byte at location $E100CB is non-zero, the Memory Manager will not move 
  18. any memory blocks, and it will not purge any blocks while trying to allocate 
  19. memory (PurgeHandle and PurgeAll will still purge blocks).
  20.  
  21. Debugging utilities may temporarily increment this byte to allocate memory in 
  22. situations when it is not safe for existing memory blocks to be moved or 
  23. purged.
  24.  
  25. This flag byte is for use only by debugging aids and System Software.  It 
  26. would be mind-numbingly stupid for an application to use this flag instead of 
  27. using HLock and HUnlock, since the advantages of a Memory Manager architecture 
  28. with relocatable blocks would be lost.